﻿using System.Web.Mvc;

namespace YawetagLib.Web.Utilities
{
    public static class HtmlExtensions
    {
        public static string StyleReference(this HtmlHelper htmlHelper, string name, bool tempRelative)
        {
            return HtmlBuilder.StyleReference(name, tempRelative);
        }

        public static string StyleReference(this HtmlHelper htmlHelper, string name)
        {
            return HtmlBuilder.StyleReference(name, false);
        }

        public static string StyleReference(this HtmlHelper htmlHelper, string path, string name, bool tempRelative)
        {
            return HtmlBuilder.StyleReference(path, name, tempRelative);
        }

        public static string StyleReference(this HtmlHelper htmlHelper, string path, string name)
        {
            return HtmlBuilder.StyleReference(path, name, false);
        }

        public static string ScriptReference(this HtmlHelper htmlHelper, string name)
        {
            return HtmlBuilder.ScriptReference(name);
        }

        public static string ScriptReference(this HtmlHelper htmlHelper, string path, string name)
        {
            return HtmlBuilder.ScriptReference(path, name);
        }

        public static string Image(this HtmlHelper htmlHelper, string path, string name, bool tempRelative, object htmlAttributes)
        {
            return HtmlBuilder.Image(path, name, tempRelative, htmlAttributes);
        }

        public static string Image(this HtmlHelper htmlHelper, string path, string name, object htmlAttributes)
        {
            return HtmlBuilder.Image(path, name, false, htmlAttributes);
        }

        public static string Image(this HtmlHelper htmlHelper, string path, string name)
        {
            return HtmlBuilder.Image(path, name, false, null);
        }

        public static string Image(this HtmlHelper htmlHelper, string name, bool tempRelative, object htmlAttributes)
        {
            return HtmlBuilder.Image(name, tempRelative, htmlAttributes);
        }

        public static string Image(this HtmlHelper htmlHelper, string name, object htmlAttributes)
        {
            return HtmlBuilder.Image(name, false, htmlAttributes);
        }

        public static string Image(this HtmlHelper htmlHelper, string name)
        {
            return HtmlBuilder.Image(name, false, null);
        }

        public static string Hyperlink(this HtmlHelper htmlHelper, string name, object htmlAttributes)
        {
            return HtmlBuilder.Hyperlink(name, htmlAttributes);
        }

        public static string Hyperlink(this HtmlHelper htmlHelper, string name)
        {
            return HtmlBuilder.Hyperlink(name, null);
        }
    }
}
